package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 做题历史表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "做题历史表")
@NoArgsConstructor
@Accessors(chain = true)
public class ProblemUser extends BaseEntity {

    /**
     * 序列化版本号
     */
    @Serial
    private static final long serialVersionUID = -6133230905270551565L;
    /**
     * 题目ID
     */
    @Schema(description = "题目ID")
    private Long problemId;
    /**
     * 考试记录ID
     */
    @Schema(description = "考试记录ID")
    private Long problemBankUserId;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;
    /**
     * 答案
     */
    @Schema(description = "答案")
    private String answer;
    /**
     * 是否正确(0不正确,1正确)
     */
    @Schema(description = "是否正确(0不正确,1正确)")
    private Integer isCorrect;

}
